package org.openoa.engine.bpmnconf.adp.personneladp;

import org.openoa.base.service.empinfoprovider.BpmnEmployeeInfoProviderService;
import org.openoa.common.adaptor.AbstractBpmnPersonnelAdaptor;
import org.openoa.base.interf.BpmnPersonnelProviderService;
import org.openoa.base.constant.enums.PersonnelEnum;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class CollegeSecretaryPersonnelAdaptor extends AbstractBpmnPersonnelAdaptor {

    // 注入通用员工服务 + 学院秘书的查询Provider（用@Qualifier指定具体实现）
    public CollegeSecretaryPersonnelAdaptor(
            BpmnEmployeeInfoProviderService bpmnEmployeeInfoProviderService,
            @Qualifier("collegeSecretaryPersonnelProvider") BpmnPersonnelProviderService bpmnPersonnelProviderService
    ) {
        super(bpmnEmployeeInfoProviderService, bpmnPersonnelProviderService);
    }

    // 绑定“学院研究生秘书”的PersonnelEnum（引擎通过这个找适配类）
    @Override
    public void setSupportBusinessObjects() {
        addSupportBusinessObjects(PersonnelEnum.COLLEGE_SECRETARY_PERSONNEL);
    }
}